﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
}
<div id="toolbar" class="toolbar">
    <div class="wrap">
        @RenderSection("Toolbar")
    </div>
</div>
<div class="form">
    <div class="wrap">
        @using (Html.BeginForm())
        {
            @RenderSection("Main")
        }
    </div>
</div>
<div>
    @RenderSection("Other", false)
</div>
@RenderBody()
<script>

    jQuery(function () {
        var height = $("body").height() - $("#toolbar").height();
        $(".form").height(height);
    });

    function nav(url) {
        top.navTab(url);
    }

    function back(reload, data, message, delay) {
        top.backTab(reload, data, message, delay)
    }

    function sync(form) {
        form.find(".editor textarea").each(function () {
            UE.getEditor($(this).attr("id")).sync()
        });
    }

</script>
